#!/bin/sh
set -e

echo "========== fakeroot.sh start ========="
TOP=`pwd`
echo $TOP
INITRAMFS=$TOP/output/initramfs

mknod -m 0622 $INITRAMFS/dev/console c 5 1
   
cd $INITRAMFS && find . | cpio  --quiet -o -H newc > $TOP/output/rootfs.cpio

echo "========   fakeroot.sh end ============"
